package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.UserCoupon;
import com.nbsaas.boot.marketing.api.domain.simple.UserCouponSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 用户优惠券-列表对象转换器
*/

public class UserCouponSimpleConvert implements Converter<UserCouponSimple, UserCoupon> {




@Override
public UserCouponSimple convert(UserCoupon source) {
    UserCouponSimple result = new UserCouponSimple();

                result.setCode(source.getCode());
                result.setExpireTime(source.getExpireTime());
                result.setOrderId(source.getOrderId());
                result.setGetTime(source.getGetTime());
                result.setUseTime(source.getUseTime());
                result.setId(source.getId());
                result.setCouponId(source.getCouponId());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}